package com.zdsoft.finance.organization.service;

import com.zdsoft.finance.base.service.BaseService;
import com.zdsoft.finance.common.exception.BusinessException;
import com.zdsoft.finance.organization.entity.LoanOrganization;
import com.zdsoft.essential.client.service.CED;

/**
 * 合作机构实体
 * @author gufeng
 * @date 2016-11-15
 */
public interface LoanOrganizationService extends BaseService<LoanOrganization> {

	/**
	 * 合作机构所有数据
	 * @param CED 基础数据系统
	 * @return json格式数据
	 * @throws BusinessException 异常
	 */
	public String findJsonAll(CED CED) throws BusinessException;
	
	/**
	 * 保存或更新
	 * @param po 数据
	 * @return
	 * @throws BusinessException
	 */
	public LoanOrganization saveOrUpdate(LoanOrganization po) throws BusinessException;
	
	/**
	 * 更改状态
	 * @param id
	 * @param enable
	 * @throws BusinessException
	 */
	public void updateEnable(String id, Boolean enable)throws BusinessException;
}
